import axios from 'axios'


export const recordServer = (method, params) => {
  return axios({
    method,
    url: `${url}/record`,
    data: params
  });
}

export const  sendcommentServer = (method, params) => {
  return axios({
    method,
    url: `${url}/sendcomment`,
    data: params
  });
}

export const  searchguideServer = (method, params) => {
  return axios({
    method,
    url: `${url}/searchguide`,
    data: params
  });
}

export const getinbounditemServer= (method,params) =>{
    return axios({
       method,
       url: `${url}/getinbounditem`,
       data:params
    })
}


export const getspotitemServer= (method,params) =>{
  return axios({
    method,
    url: `${url}/getspotitem`,
    data:params
  })
}

export const searchuserServer= (method,params) =>{
  return axios({
    method,
    url: `${url}/searchuser`,
    data:params
  })
}


export const gethotguideitemServer= (method,params) =>{
  return axios({
    method,
    url: `${url}/gethotguideitem`,
    data:params
})
}


export const getdestinationguideitemServer= (method,params) =>{
  return axios({
    method,
    url: `${url}/getdestinationguideitem`,
    data:params
  })
}

export const getabroaditemServer = (method,params) => {
    return axios({
      method,
      url: `${url}/getabroaditem`,
      data: params
    })
}

export const getarticleitemServer = (method,params) => {
     return axios({
      method,
      url: `${url}/getarticleitem`,
      data:params
     })
}


export const getshoppingitemServer = (method,params) => {
  return axios({
    method,
    url: `${url}/getshoppingitem`,
    data:params
  })
}

export const getfriendshareServer = (method, params) => {
  return axios({
    method,
    url: `${url}/getfriendshare`,
    data: params
  });
}


export const getfriendlistServer = (method, params) => {
  return axios({
    method,
    url: `${url}/getfriendlist`,
    data: params
  });
}

export const getfriendrequestlistServer = (method, params) => {
  return axios({
    method,
    url: `${url}/getfriendrequestlist`,
    data: params
  });
}

export const addfriendServer = (method, params) => {
  return axios({
    method,
    url: `${url}/addfriend`,
    data: params
  });
}

export const deletefriendServer = (method, params) => {
  return axios({
    method,
    url: `${url}/deletefriend`,
    data: params
  });
}




